#encoding=UTF-8
from config.util import getTop, renderObj
from django.http import HttpResponse
from django.template import Context
from django.template.loader import get_template
from tool import temp_map

web={
     'module':[
         {'render':'logo','map':'logo'},
         {'render':'div',
             'sub':[
                  {'render':'left','map':'tree'},
                  {'render':'right','map':'panel'}
              ]
         },
         {'render':'bottom','map':'com_desc'}
      ]
}
render={
        'logo':{'cl':'logo'},
        'left':{'cl':'tree','title':'功能列表'},
        'right':{'cl':'content'},
        'bottom':{'cl':'com_desc'}
}

def root(request):
    res=[];
    res.append(getTop());
    res.append(renderObj(web,render).getModule());
    return HttpResponse("".join(res));
    
    
